<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>会员列表</title>
</head>
<body>
<button onclick="window.location='/index.php/Home/User/add'">添加</button>
<table border="1">
    <tr>
    <th>身份证号码</th>
    <th>会员姓名</th>
    <th>性别</th>
    <th>加入日期</th>
    <th>会员所属的分组</th>
    <th>会员照片</th>
    </tr>
    <?php if(is_array($list)): foreach($list as $key=>$vo): ?><tr>
            <td><?php echo ($vo["iden"]); ?></td>
            <td><a href="/index.php/Home/User/detail/id/<?php echo ($vo["id"]); ?>"><?php echo ($vo["name"]); ?></a></td>
            <td><?php if(($vo["sex"]) == "0"): ?>男<?php else: ?>女<?php endif; ?></td>
            <td><?php echo ($vo["create_time"]); ?></td>
            <td><?php echo ($vo["groups"]); ?></td>
            <td><?php echo ($vo["images"]); ?></td>
        </tr><?php endforeach; endif; ?>
</table>
</body>
</html>